home *** CD-ROM | disk | FTP | other *** search
/ Emulator Universe CD / emulatoruniversecd1998.iso / CPC / Utils / CpcFile System / DOS.H < prev    next >
Encoding:
C/C++ Source or Header  |  1996-02-08  |  1.3 KB  |  64 lines

  1.  
  2. /*                <<<<Last Modified: Thu Feb 08 15:07:55 1996>>>>
  3. ------------------------------------------------------------------------------
  4.  
  5.         =====
  6.         CPCfs  --  d o s . h   ---   Borland C specific header
  7.         =====
  8.  
  9.     Version 0.85                    (c) February '96 by Derik van Zuetphen
  10. ------------------------------------------------------------------------------
  11. */
  12.  
  13. #ifndef DOS_H_INCLUDED
  14. #define DOS_H_INCLUDED
  15.  
  16.  
  17. #include <dir.h>
  18. #include <string.h>
  19. #include <fcntl.h>
  20. #include <setjmp.h>
  21. #include <errno.h>
  22. #if USE_READLINE
  23. #include <conio.h>
  24. #endif
  25.  
  26. #define SHELLVAR    "COMSPEC"
  27. #define SHELLDEFAULT    "c:\\command"
  28. #define PAGERDEFAULT    "more"
  29. #define LDIRCOMMAND    "dir"
  30. #define DIRSEPARATOR    '\\'
  31. #define FIRST_OPTIND    1
  32. #define    F_OK        0        /* for access */
  33. #define R_OK        4        /* dto. */
  34. #define ENTER        13
  35.  
  36. extern char Break_Wish;
  37.  
  38. /* this getwd() is not exactly the same as Unix' one, but it works */
  39. extern char    cwdbuffer[256];
  40. #define getwd(DUMMY)        getcwd(cwdbuffer,256)
  41.  
  42. int break_handler();
  43. void disable_break();
  44.  
  45. void save_path();
  46. void rest_path();
  47.  
  48. char *glob_file(char *pattern);
  49. char *glob_next();
  50.  
  51. int add_history(char*);
  52.  
  53. char* tmp_nam(char*);
  54.  
  55. /* prototypes of getopt.c */
  56. extern int    optind;
  57. extern char    *optarg;
  58. extern int    opterr;
  59. int getopt(int argc, char *argv[], char *optionS);
  60.  
  61.  
  62.  
  63. #endif
  64.